import md5 from 'md5';
class MessageBody {
    
    /**
     * 消息里存储的实质数据
     */
    public data:string;
    /**
     * 对该消息的hash签名
     */
    public hash :string;
    /**
     * 是否已经发送出去;
     */
    public sent:boolean = false;
    public constructor(data:string){          
            this.data = data;
            this.hash = md5(data);
    }

}
export default MessageBody;